package com.ly.jwt.db.entity;

/**
 * @Date: 2022-07-24 17:40
 */
public class UserLogType {

    public static final int ZHUC = 1;

    public static final int LOGIN = 2;

    public static final int QUIT = 3;

    public static final int ADD = 4;

    public static final int UPDATE = 5;

    public static final int DEL = 6;

    public String getName(Integer val) {
        return findName(val);
    }

    public static String findName(Integer val) {
        if (val != null) {
            switch (val) {
                case ZHUC:
                    return "注册";
                case LOGIN:
                    return "登录";
                case QUIT:
                    return "下线";
                case ADD:
                    return "添加";
                case UPDATE:
                    return "修改";
                case DEL:
                    return "删除";
                default:
            }
        }
        return null;
    }

}

